package com.antd.auth.fegin.factory;

import com.antd.auth.fegin.RemoteUserService;
import com.antd.auth.fegin.fallback.RemoteUserFallbackImpl;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

/**
 * TODO
 *
 * @author 子丶沫
 * @version 1.0
 * @date 2020/11/19 10:07
 */
@Component
public class RemoteUserFallbackFactory implements FallbackFactory<RemoteUserService> {
    @Override
    public RemoteUserService create(Throwable throwable) {
        return new RemoteUserFallbackImpl(throwable);
    }
}
